package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {
	private String keyword;
	private int currentPage = 1;
	private int pageSize = 5 ;
	
	public int getBeginIndex(){
		return (currentPage-1) * pageSize;
	}
}
